package org.xdq.demo.model;



import java.util.Date;

public class Emp {

    private String e_id;
    private String e_name;
    private Integer e_sex;


    private Date e_birth;

    private Integer e_status;

    private Dep dep;

    public String getE_dep(){
        return dep != null? dep.getD_name():null;
    }

    public String getE_statusName(){
        switch (e_status){
            case 0:return "未确定";
            case 1:return "已确定";
            case 2:return "已启用";
            case 3:return "已禁用";
            default :return null;
        }
    }

    public String getE_id() {
        return e_id;
    }

    public void setE_id(String e_id) {
        this.e_id = e_id;
    }

    public String getE_name() {
        return e_name;
    }

    public void setE_name(String e_name) {
        this.e_name = e_name;
    }

    public Integer getE_sex() {
        return e_sex;
    }

    public void setE_sex(Integer e_sex) {
        this.e_sex = e_sex;
    }

    public Date getE_birth() {
        return e_birth;
    }

    public void setE_birth(Date e_birth) {
        this.e_birth = e_birth;
    }

    public Integer getE_status() {
        return e_status;
    }

    public void setE_status(Integer e_status) {
        this.e_status = e_status;
    }

    public Dep getDep() {
        return dep;
    }

    public void setDep(Dep dep) {
        this.dep = dep;
    }
}
